package com.qjquestion.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qjquestion.domain.Customer;
import com.qjquestion.mapper.CustomerMapper;
import com.qjquestion.service.CustomerService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer> implements CustomerService {

    @Resource
    private CustomerMapper customerMapper;

    /**
     * 新增会员
     * @param entity 会员信息
     * @return
     */
    public int insert(Customer entity){
        int count = customerMapper.insert(entity);
        return count;
    }
}
